package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 技师经营的项目
 * </p>
 *
 * @author stylefeng
 * @since 2019-09-09
 */
@TableName("biz_artificer_business")
@Data
public class ArtificerBusiness extends Model<ArtificerBusiness> {

    private static final long serialVersionUID = 1L;

    /**
     * 项目ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 业务名称
     */
    private String businessName;
    /**
     * 项目描述
     */
    private String describe;
    /**
     * 注意事项
     */
    private String pointsAttention;
    /**
     * 服务时长(分钟)
     */
    private Integer serviceDuration;
    /**
     * 分类Id
     */
    private Integer typeId;
    /**
     * 下单须知
     */
    private String orderNotice;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 好评率
     */
    private String praiseRate;
    /**
     * 总订单数
     */
    private String totalCount;
    /**
     * 折扣率(%)
     */
    private Float discount;
    /**
     * 备注
     */
    private String remark;
    /**
     * 项目价格 元
     */
    private Integer price;
    /**
     * 默认项目 1 默认选择 0飞默认
     */
    private Integer ced;

    /**
     * 接单开始时间
     */
    private  Date  orderStartTime;

    /**
     * 接单结束时间
     */
    private  Date  orderEndTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ArtificerBusiness{" +
        "id=" + id +
        ", businessName=" + businessName +
        ", describe=" + describe +
        ", pointsAttention=" + pointsAttention +
        ", serviceDuration=" + serviceDuration +
        ", typeId=" + typeId +
        ", orderNotice=" + orderNotice +
        ", createTime=" + createTime +
        ", praiseRate=" + praiseRate +
        ", totalCount=" + totalCount +
        ", discount=" + discount +
        ", remark=" + remark +
        ", price=" + price +
        ", ced=" + ced +
        "}";
    }
}
